-- A37-巡逻
-- 受创buff光效

return {
    onDamaged = function(monster)
        if UIDungeonMgr:getCurLevel() ~= nil then
            local openMonsterGrids = UIDungeonMgr:getCurLevel():getOpenMonsterGrids();
            for i = 1, #openMonsterGrids do
                local monsterGrid = openMonsterGrids[i];

                playAddBuffEffect(monsterGrid, BUFF_TYPE_HP);
            end
        end
    end,

    onDie = function(monster)
        --
        local openMonsterGrids = UIDungeonMgr:getCurLevel():getOpenMonsterGrids();
        for i = 1, #openMonsterGrids do
            local monsterGrid = openMonsterGrids[i];
            playAddBuffEffect(monsterGrid, BUFF_TYPE_HP);
        end
    end
}